package com.karry.yl.domain.services;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.karry.commons.base.SuperEntity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@TableName("meal")
public class Meal extends SuperEntity {
    private String name; // 套餐名称
    private BigDecimal price; //套餐价格
    private int cycle; //1:月付 2：季度付 3：半年付 4：年付
    private int type; //1:居家套餐  2：入住套餐
    private Long orgId;  //所属机构
    private String intro; // 描述
    @TableField(exist = false)  //表示该属性不为数据库表字段，但又是必须使用的。
    private List<MealItems> itemsList = new ArrayList<>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getCycle() {
        return cycle;
    }

    public void setCycle(int cycle) {
        this.cycle = cycle;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }


    public List<MealItems> getItemsList() {
        return itemsList;
    }

    public void setItemsList(List<MealItems> itemsList) {
        this.itemsList = itemsList;
    }
}
